+ Reply to Thread + Post New Thread
Results 1 to 2 of 2

Thread: [TUT] Browse Folder Dialog [/TUT]

  1. #1
    "
    " is offline
    Junior SEO Specialist
    Join Date
    Jan 2011
    Posts
    101
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [TUT] Browse Folder Dialog [/TUT]

    ;1643915"];112993']Originally on my site: Browse Folder Dialog

    Alright guys so I am going to show you how to create a browsefolderdialog. All this does it popup to the user and let them choose a folder.

    For this you need:
    1 Button
    1 Textbox

    Double click your button and add in the code:

    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim BrowseFolder As New FolderBrowserDialog
            BrowseFolder.ShowDialog()
            TextBox1.Text = BrowseFolder.SelectedPath
        End Sub
    Code:
    Dim BrowseFolder As New FolderBrowserDialog
    This defines BrowseFolder as your FolderBrowserDialog

    Code:
    BrowseFolder.ShowDialog()
    This makes your FolderBrowserDialog pop-up to the user and lets them select their path

    Code:
    TextBox1.Text = BrowseFolder.SelectedPath
    This sets your textbox1.text to what ever folder is selected.

    After that you can do whatever you want with your selected folder.



    This is how it will work when you are done:

    [youtube]http://www.youtube.com/watch?v=ci9zC2HN8lA[/youtube]

  2. #2
    Noobie
    Join Date
    Jan 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [TUT] Browse Folder Dialog [/TUT]

    nice tut bro .... i need it coding for my program

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts